<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<f:loadBundle basename="resources" var="msg" />
<body>
<ui:composition>
	<h:form>
		<div style="position: absolute; top: 20px; height: 300px;"
			id="navigationMenu"><h:panelGrid id="panel" columns="1"
			border="0">
			<h:commandLink value="${msg.mainpage}"
				action="#{navigationMenu.goToMainpage}" immediate="true" />
			<h:commandLink value="${msg.login}"
				action="#{navigationMenu.goToLogin}" immediate="true"
				rendered="#{sessionBean.loggedIn != true}" />
			<h:commandLink value="${msg.register}"
				action="#{navigationMenu.goToRegister}" immediate="true"
				rendered="#{sessionBean.loggedIn != true}" />
			<h:commandLink value="${msg.mySite}"
				action="#{navigationMenu.goToUserHome}" immediate="true"
				rendered="#{sessionBean.loggedIn}" />
			<h:commandLink value="${msg.myPicturesUpload}"
				action="#{navigationMenu.goToUserPicturesUpload}" immediate="true"
				rendered="#{sessionBean.loggedIn}" />
			<h:commandLink value="${msg.userSearch}"
				action="#{navigationMenu.goToUserSearch}" immediate="true"
				rendered="#{sessionBean.loggedIn}" />
			<h:commandLink value="${msg.newPassword}"
				action="#{navigationMenu.goToNewPassword}" immediate="true"
				rendered="#{sessionBean.loggedIn != true}" />
			<h:commandLink value="Adminsite"
				action="#{navigationMenu.goToAdminUserList}" immediate="true"
				rendered="#{sessionBean.isAdmin}" />
			<h:commandLink value="${msg.logout}" action="#{sessionBean.doLogout}"
				immediate="true" rendered="#{sessionBean.loggedIn}" />
		</h:panelGrid></div>
	</h:form>
</ui:composition>
</body>
</html>